.batterylevel-battery {
  position: relative;
  width: 75px;
  height: 30px;
  border: 1px solid rgb(128, 128, 128);
  border-radius: 4px;
  margin-bottom: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(211, 211, 211);
  font-size: 14px;

  &::after {
    content: '';
    position: absolute;
    top: 7px;
    right: -6px;
    width: 6px;
    height: 13px;
    background-color: rgb(128, 128, 128);
    border-radius: 2px;
  }

  .battery-level-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #808080;
    z-index: 1;
    transition: width 0.3s ease-in-out;
  }

  .battery-text {
    position: relative;
    z-index: 2;
  }

  .battery-over {
    color: lightgrey;
  }

  .battery-under {
    color: #808080;
  }

  @media (max-width: 575px) {
    width: 50px;
    height: 25px;
    font-size: 12px;

    &::after {
      top: 4px;
    }
  }
}

.lowbattery .battery-level-fill {
  background-color: #e69533;
}

.charging .battery-level-fill {
  background-color: #4caf50;
}
